package com.idak.jaxb.library;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name="LIBRARY")
public class Library {
	
	private List<Book> books = new ArrayList<Book>(0);
	private List<Dvd> dvds   = new ArrayList<Dvd>(0);
	
	@XmlElementWrapper(name="BOOKS")
	@XmlElement(name="BOOK")
	public List<Book> getBooks() {return books;}
	
	@XmlElementWrapper(name="DVDS")
	@XmlElement(name="DVD")
	public List<Dvd> getDvds() {return dvds;}
	
	public void setBooks(List<Book> books) {this.books = books;}
	public void setDvds(List<Dvd> dvds) {this.dvds = dvds;}
}
